<html>
<head><meta charset="utf-8"><title>Help with building vector math library for use with std::... · t-compiler/wg-llvm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/index.html">t-compiler/wg-llvm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html">Help with building vector math library for use with std::...</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="238403548"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/238403548" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Lifshay <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#238403548">(May 12 2021 at 00:42)</a>:</h4>
<p>I'm writing a vector math library for <a href="https://github.com/rust-lang/stdsimd/issues/109">stdsimd#109</a>, we looking for help figuring out how to get llvm to generate calls to that math library for llvm intrinsics such as llvm.sin.v8f32, also was wondering if that code could go into the rustc llvm bindings until upstreamed to llvm</p>



<a name="238403998"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/238403998" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Lifshay <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#238403998">(May 12 2021 at 00:48)</a>:</h4>
<p>also, can llvm inline functions that were lowered from llvm intrinsics to library calls?</p>



<a name="238404747"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/238404747" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Caleb Zulawski <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#238404747">(May 12 2021 at 00:59)</a>:</h4>
<p>Yes, I tested that</p>



<a name="238405336"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/238405336" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Lifshay <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#238405336">(May 12 2021 at 01:04)</a>:</h4>
<p>I'm guessing we'll need to write an implementation of <a href="https://llvm.org/doxygen/classllvm_1_1TargetLibraryInfo.html">https://llvm.org/doxygen/classllvm_1_1TargetLibraryInfo.html</a></p>



<a name="240092648"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/240092648" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Lifshay <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#240092648">(May 24 2021 at 18:37)</a>:</h4>
<p>anyone?</p>



<a name="240098813"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/240098813" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#240098813">(May 24 2021 at 19:21)</a>:</h4>
<p><span class="user-mention silent" data-user-id="229517">Jacob Lifshay</span> <a href="#narrow/stream/187780-t-compiler.2Fwg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E/near/238403548">said</a>:</p>
<blockquote>
<p>also was wondering if that code could go into the rustc llvm bindings until upstreamed to llvm</p>
</blockquote>
<p>as general policy, I strongly prefer upstream first, otherwise it's harder to manage rebases and also support for external LLVM builds</p>



<a name="241864027"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Help%20with%20building%20vector%20math%20library%20for%20use%20with%20std%3A%3A.../near/241864027" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Lifshay <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Help.20with.20building.20vector.20math.20library.20for.20use.20with.20std.3A.3A.2E.2E.2E.html#241864027">(Jun 08 2021 at 02:21)</a>:</h4>
<p>started a thread on llvm-dev <a href="https://lists.llvm.org/pipermail/llvm-dev/2021-June/150965.html">https://lists.llvm.org/pipermail/llvm-dev/2021-June/150965.html</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>